package com.design.single;

import java.util.Objects;

/**
 * @author leal
 * @title: SingletonMain
 * @projectName DesignMode
 * @description: 主函数
 * @date 2021/7/21 21:24
 */
public class SingletonClient {
    public static void main(String[] args) {
        LazySingleton l1, l2;
        l1 = LazySingleton.getInstance4();
        l2 = LazySingleton.getInstance4();
        System.out.println(Objects.equals(l1, l2));
    }
}
